package org.ioriframework.plugin.maven.util;

import org.ioriframework.plugin.maven.Activator;

/**
 * 首选项相关工具类
 * @author iori
 *
 */
public class PreferenceUtils {

	/**
	 * 获取key对应的配置
	 * @param key
	 * @return
	 */
	public static String getString(String key) {
		return Activator.getDefault().getPreferenceStore().getString(key);
	}
	
	/**
	 * 获取key对应的配置
	 * @param key
	 * @return
	 */
	public static Boolean getBoolean(String key) {
		return Activator.getDefault().getPreferenceStore().getBoolean(key);
	}
	
	public static void setValue(String key, String val) {
		Activator.getDefault().getPreferenceStore().setValue(key, val);
	}
}
